Call the after-all callback in the end (even in the case of an error).