Removed the cheap fix I did for the stackoverflow error when disconnecting, and did it properly.
Slow logout when clicking the button fix.
Exception handling, debugging mods.
Documentation updates and fixes.