we need to ensure it doesn't trigger during window/app closing BUG: 470293 (cherry picked from commit 772450c9)