finish callback error handling