Fixed race condition using callbacks when deleting webrtcconnection