Mining Bot Question

Hello, I’m using the mining bot to mine in nullsec, i’ve seen that after the ship retreat from an attack and dock the bot stop.
Is it possible to let the bot stay running after the attack?