Orbit Object Issue - Ratting Bot

Hi all

loving the bot, working well - except one issue that always causes my bot to get stuck and I lose my drones.

Running a Haven, I set to orbit the gate at a certain distance, every now and again the bot locks the actually gate and tries to set the drones to attack it. This then jams the bot as it cannot unlock the gate again, and keeps trying to send the drones to attack.

Any ways to get around this?

Thanks