Set error code to 0 for normal TCP disconnection.