Unix Agent connects and disconnects to the CP in a loop