If you can, load an earlier save game.
You can also try not returning to port - go on a long run for a day or two then return.
If your PC specs are on the low side - small issues like a bottle neck with ships is enough to tip you over the edge and ctd.
By loading an eariler save and/or not returning to port - you let the campaign engine sort out the bottle neck.