Fixing restarting server state issues and twitter disconnect conditions