For example trading session is finished before strategy has chance to cancel the trade and trade is left open until the next end of day or until it is closed by other exit rule.
Fix it so that the trade will be closed on the next tick when trading resumes again.