Use DocumentManager.closeAll() to prevent accidental usage of spies set in Dialog.showSaveDialog