Show confirm discard prompt when close button is clicked/window is destroyed.