[classicui] fix memory leak
[fcitx] better exit, use reverse order to destroy module