final file cleanup