I have not yet played on public servers yet (only my private 1 so far) but when you log off your ship is left floating in space, so hide it :D (sector 8,8,8 is a great spot to hide it in ;) )
To prevent your ship from being mined/stolen is to put a faction block on it. (They can still attack...