Get rid of the callback in poll_event