onError callback triggered in case any error happens when transferring ownership
final OnError? onError;