throw exception (instead of null result) if network connection gets errors
show error message if exception happens when connecting to the server