Add debug option and forced GC on unload