Use the "detach all ships" button when useful.