Message port close prediction based on observing GC of WeakRefs

Ports are passed repeatedly to the opened window. A red line will scroll down the screen whenever we detect that a MessagePort has been GCed. We repeatedly allocate and free memory to force GC to occur.