Bot now disconnects and exits cleanly on command