free the memory when the desktop is closed/
...