Improve reporting of server connection errors.
updated shebang
Merge pull request #1 from dparks1134/master

Improved reporting of server connection errors.
The code is acceptable.