Catch error in client.