handle errors in classic service