removeListeners for clean exit

linked with #38