Fix for stop agent infinite loop with docker
Fix for stop agent infinite loop with docker

edge case mentioned in #5858

Skarlso/gocd,marques-work/gocd,arvindsv/gocd,kierarad/gocd,naveenbhaskar/gocd,kierarad/gocd,tomzo/gocd,ind9/gocd,marques-work/gocd,Skarlso/gocd,tomzo/gocd,varshavaradarajan/gocd,kierarad/gocd,ind9/gocd,ketan/gocd,arvindsv/gocd,Skarlso/gocd,varshavaradarajan/gocd,arvindsv/gocd,ibnc/gocd,bdpiparva/gocd,Skarlso/gocd,GaneshSPatil/gocd,ketan/gocd,naveenbhaskar/gocd,ketan/gocd,ketan/gocd,ketan/gocd,ketan/gocd,tomzo/gocd,Skarlso/gocd,gocd/gocd,arvindsv/gocd,marques-work/gocd,marques-work/gocd,naveenbhaskar/gocd,arvindsv/gocd,bdpiparva/gocd,bdpiparva/gocd,tomzo/gocd,arvindsv/gocd,gocd/gocd,kierarad/gocd,gocd/gocd,GaneshSPatil/gocd,Skarlso/gocd,kierarad/gocd,ibnc/gocd,GaneshSPatil/gocd,gocd/gocd,bdpiparva/gocd,ind9/gocd,naveenbhaskar/gocd,ibnc/gocd,gocd/gocd,tomzo/gocd,GaneshSPatil/gocd,varshavaradarajan/gocd,tomzo/gocd,ibnc/gocd,naveenbhaskar/gocd,bdpiparva/gocd,bdpiparva/gocd,gocd/gocd,ind9/gocd,varshavaradarajan/gocd,varshavaradarajan/gocd,varshavaradarajan/gocd,ibnc/gocd,ind9/gocd,kierarad/gocd,GaneshSPatil/gocd,GaneshSPatil/gocd,marques-work/gocd,naveenbhaskar/gocd,ibnc/gocd,marques-work/gocd