socket: properly handle if our service vanished during runtime