finish postMessage