Throw an exception if we cannot create the socket