improved TheM plugins unload methods