Add window closing confirmation