Shutdown the event loop immediately.