Fix. Raise error form progress function.