Fixed issue #3

Fixed issue #3, so that the status code check will return false if there
is no response from the server.