This `if` statement should be removed. The stream handler should be removing this from the event loop, not the event loop itself. This statement currently removes the stream from the loop without notifying the listeners.