process: handle errors