Suprress errors in finalizer
Avoid cast exception