Made changes to the error handling in the client; attempted to fix an apparent bug in the client_options copy constructor.