wrote handleTCPReset() method