I had one where I killed everyone who was on the planet/moon and then I got into the dock area when the door was closing. It closed on me and the ship took off but I glitched out and fell back to the ground.
This seems to have been patched out in one of the latest updates as I tried it again but the door wouldn’t close until I left the docking area.