Added onDisconnect()

...Yeah. That's all folks
A couple of bug fixes

Including: onDisconnect() was never actually called. Welp.