Now the client software prints an error message dialog and closes itself when an exception is caught.