If you wait for 20 seconds, the rest of your script will stop running.

That's a rather large time period for your script to stop.