In vb6 we have terminate events. Code that must be called when object is destroyed.

Do we have that on vb.net?