Ship bugged

I was flying in my ship down to Magrathera and the core changed to the Centuari alliance faction. I am now stuck in my ship because nothing works for me because the core changed. is there any way I can get my ship back please?

DIsregard i relogged and it was on the other side of the planet.