move the disconnection event after we are done disconnecting, there is nothing to be done anyway
Merge pull request #43 from sztanpet/disconnectevent

Send the disconnect event after doing the disconnection logic