Removed listener from toolkit on exit