Make RTCPeerConnection close method be idempotent.