I saw this one time last night. I received a colony ship as a reward, THEN had to fight the pirates, and lost. But still could sail away with the colony ship. Very odd. I was running 97.7 opt in at the time.
You should probably move this thread to Support. (Edit your original post and change the header line containing Feedback to Support).
Also you seem to have spawned two threads instead of one (it happens). You should pare this down to one to focus things.