The agent is now self contained
Do not use bare except: