Handle socket disconnection
Handle eventhandler disconnection
trigger disconnect event on eventhandler
Changed attachments mechanism
renamed custom-eventhandler
removed commented code