some minor code style fixes
fixed the issue for bots to reconnect back to server when they are done