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