Fixed waiting for events ends before calling non-blocking read operations