afaict, there's no onclose function except for data channels (xref http://hg.mozilla.org/mozilla-central/annotate/5e66712edb18/dom/webidl/RTCPeerConnection.webidl).