Add more error handling flexibility.
Handle server unreachable errors.
Add some more error handling.