prevents scheduler from running with no events
fixes #20