Made it throw an exception when it couldn't connect to the server. It's more logical and consistent with the rest of the code.