shell: add env variable to mark quitting status
This should be useful when dealing with downstream bug reports with crashes during rhythmbox quit, which have automated submission of process environment vars, but missing otherwise useful information.