onceClosed promise for netclient and datachannel