I've had this issue when retreating: my ships are getting blown up because they aren't fast enough. So here is my proposal: you should be able to switch power from one system to another; like drain weapons power to the engines so they can get to the edge of the gravity well faster. There you go!
By the way: sorry, but this beta in ununfun.