erro managment in ClientBuffer