Moved exceptions
Cleanup pending events if loop is not running