Close record file before cleanup
Merge pull request #1187 from oscarbenjamin/develop

Close record file before cleanup