OneAgent deployment

Further improved handling and reliability of OneAgent deployments