use finalize instead of dispose during destruction of object.