Stop recv when connection lost