make event scheduler block until all events have run