refs #10 Added warning alert on close button click