Save workspace on exit only if exists

Closes #37