remove connection event listeners when server stops
Merge pull request #923 from iamdoron/master

remove connection event listeners when server stops