Close any open modals before opening import/export