return error at finalizers