Remove event loop