Answer
When closing the arbitrage bot the price gap matters hence when the price gap isnt met , the bot would still be in closing mode however this doesnt mean the bot would crash , until price gap is met the bot would be trying and whatever the funding fee is it will be given on the available balance