created a panic_loop which replaces the update() loop when a panic stop has been registered. Bugfixes