Logging out of the game while in the gravity well of a wormhole results in loss of ship as when you log back in you are outside the ship and it gets pulled into the wormhole faster than the player no matter what.
I can only think of two options to fix this, either make it so when you log out in control of the ship you return to the world controlling the ship on login unless another player is in control of it. Or it should be set so all bodies not under propulsion in the gravity well of a wormhole have the same top speed, but be able to push past it slightly when under power to allow maneuvering between objects in the gravity well when at maximum attraction speed.