Option to delay clear until a new file is selected or the file dialog is canceled.