make shutdown synchronous, and call it on process 'exit' events
Merge pull request #93 from adobe-photoshop/jrb/fix-shutdown-process

make shutdown synchronous, and call it on process 'exit' events