Cleanup for export and show loading