Worked great, only issue it was trying to release the drone while in warp, also it tried to release right when I got to the base. Not sure where the best timing spot would be. My guess would be say after a 20 second delay after targeting asteroid.
Sorry if this is too much trouble, been having issues lately. If i can start to pin them down I will post so that we can see what is going on. I love the program.
EDIT: Was watching the program with the drone edit and when it got to the base it released then drones and while it was working the docking procedures it didn't recover the drones in time. So if I wasn't watching the screen those would of been left.
Edit of a Edit: I took the code out and restart things and got into this endless loop of defense. My Setting is 98% and My shields are at 100% and it was trying to enter defense. I will link a screenshot so you can see this, see if i screwed something up.