Added check for other open log files before closing in remove -t