When probing the server, do a full transaction.
Separate socket errors from verification errors.
Close the right file descriptor.
Removed unused command-line switches.