Fixed crash when closing wrtcconn in certain conditions