issue #695 fixed handling of legacy masking objects
Make close all use window.close() to give windows a chance to hide instead of destroy