log error when category isn't found
revert n0u's changes in battleroom tab (sorry, was to broken / features missing!)
fix crash on exit / reconnect on close #2:

close connection before executing ondisconnect events