Connection reset recovery in daemon