ENG-5727.  Python 2.4 compatible try/except/finally construct.