endComputation is now called even if error.