Added bailout cases to the ready_generation task.