remove connected and failed listeners on close
Merge pull request #48 from nnevala/clear-event-listeners-on-close

Remove connected and failed listeners on close
update version