Check pointer in finalizer