by davypi
The confusion might be because you cannot buy buildings on the final action. As Dave noted, selling is legal. So..If you own the shipping line, selling to kick yourself out and then reusing is OK.
If the city owns the shipping line, purchasing it to kick yourself out and reusing is invalid.