fix the missing error handle in zinc_agent