Added code to send RESET when TCP session exit abnormally.