Catch network errors (ENOTFOUND etc.)

Also: minor edits of README