Ouch.. that definitely puts the hurt on the cash flow. I came very close to an expensive rebuy myself this weekend, teaching a new commander the art of combat via multi-crew. A little uncoordination and a preemptive strike on a potential target turned ugly fast, and I had to get my Beluga out of harm's way - but a volley of missiles was bound and determined to change that, and they managed to knock out my thrusters, leaving us helpless as they closed the distance - but being the clever don't-panic sort, and making my escape Flight-Assist Off, I was able to keep drifting even as I reboot/repaired my systems, keep some distance between us and certain rebuy, and we waked out with 30% hull remaining.
It's little things like that that snatch defeat from the jaws of victory, and keep your money in your pockets.