Improvement error log in Client.php