prevent crash when socket does not exist