Shutdown properly after exiting main loop
Implementing a watchdog + IRC reconnect