Fixed race during handling of exception throw during scheduling.