Wouldn't be a simple retry with an intervall counting up be an option (in trade mode only)? E.g. retry 5 times, and add a minute waiting time per retry?
I believe just stop trading is the worst decision possible, since maybe still stop losses might be relevant, even though no new trades may be entered.