This happens when the step's command completion criteria is set to :
which means that the step will complete when the device is idle for the time specified by the Idle channel interval property or the specified completion time has expired.
This issue can be resolved by setting the command completion criteria to "Prompt matches AND device has not sent data during the Idle channel interval".