trap 'unknown channel' exception in postMessage()