final before leaving the desktop