wait_for now raises if the scheduler is not already running in threaded
mode. resolves #12.