release log file on stream close