Adds error handling for client