Added returned error when connecting to server