make sure peerconnection is closed
1.3.2
avoid calling end again after triggering it
1.3.3