Set shouldReconnect in the bothandler

When restarting. Also make the shutdown method in it.