Call the done callback even in case of errors.