Error on stop() with unconnected socket handled