cleanup, more graceful exit

Allows the user bot to see the ERROR msg.