Use 'with' for opening most file and SFTPFIle objects