A new boolean variable: confirmToClose