Submitting code to raise exception when connection lost (a missed case).