The code from this page leaves the Teensy running neither the application nor the boot loader if an external reset has happened (the reset button has been used) since the last power-on reset.