version 1.18 - error handling

Don't print a stack trace unless it's an unknown error.
Handle socket errors from do-http-request better.