Unregister data type on close of view