remove files after exporting. exit when error.