Agent lost connection handling.