finalize any open file handles

def finalize(self):
        """ finalize any open file handles """
        if self.rc_file:
            self.rc_file.close()
        if self.env_file:
            self.env_file.close()