Put TDC file cleanup in finally block