Try/finally is a python 2.5 construct, so not working
on EL5. Fix #4763
Merge pull request #4772 from mscherer/fix_4763

Try/finally is a python 2.5 construct, so not working on EL5. Fix #4763