Add a Stop Block to stop the program after the alarm. You might have to make the alarm duration shorter.