But that's why there would be an yes/no dialog, isn't it? It'd still close, just not before the warning.