So is there a question you are asking here?
Providers typically go out of service because of network failure which a handshake catches and cleans up the socket. Due to the outage, it is not possible to recover automatically (data has been lost and the application needs to be aware of that).
The question you need to investigate is why did the out of service condition occur (which I suspect is the nature of your post). Look at the AES logs to see if AES merely noticed the link go down itself, or if it initiated the disconnect (typically becasue the application did not accept a message it was trying to send to the application for a period of time).