adds error message if socket does not exist