New 'close2' warning

When attempting to use this command without a prior dialog window it now will throw a warning and skip halting the script.
Special Thanks to j-tkay, Gepard.

Signed-off-by: shennetsind <ind@henn.et>