Exception of type HOLD is not taken into account when simulating a task