Exit when Photoshop quits (possibly due to a crash)