Add defer for Close File