added catching of exceptions to client. Cerr redirected to output file "client_error.log".