Program the loop to stop when 15 seconds pass so that the switch that interrupts it after 15 seconds becomes useless.