Add a warning when closing window with running analysis.