Added client error logging