Null the instance when unloading