issue/1725-stat-utils-unclosed-file

Fix #1725 - stats summary file is now closed