Fix issue with try/catch block inside finally for older Python versions before 2.6.
Fix issue with try/catch block inside finally for older Python versions before 2.6.

canerdogan/sd-agent,canerdogan/sd-agent