[client] Added error diagnostic messages.
[client] Add --file and --local-port to commandline.