remove unused module
should clear event loop before emitting exit; resolves #9