remove connection event listeners when server stops