Looking at how often the agent drops off from the server the idea that it was the network killing the socket didn't make a lot of sense and the keep alive time was every 10 minutes which also went against that, however I decided to drop that keep alive time down to 60 seconds(keep in mind automic says that it adds another 60 seconds on to what ever you set it at) so it would create a keep alive communication every 2 minutes. The agent stayed up over 24 hours without issue. I am now trying to up that keep alive time to see what the threshold is.