impliment on_uninitialize interface