Improve error reporting
Increase WAIT_FOR_SOFT_STOP to 60 seconds
Clean environment at the end of the main loop