raise exception if socket not found