Close temporary files not only in tests.