close palette editor upon progrm exit