Create the socket in case it was set to None