Modified handling of nextEvent, less exception spam.