Basic deployment to er_instance_agent
Properly terminating ports on redeployment.