save installed packages on exit