reset socket when reset connection