TRENDOUTPUT: Close filehandle on caseend