Use of MessageChannel.js helpers and fix iframeAdapter.terminateSandbox