Verify connection before draining events to avoid EAGAIN loop.