Makes the export panel close on successful export.