Added code to test lost connection recovery in send context.