Exception handling in client