window: remove needless goroutine spawn upon call to Close.

This was needed before due to a deadlock issue that would occur due
to Close sending things to the main thread (which the caller lived
in).

Close no longer runs on the main thread but rather notifies the
window's goroutine to do the closing.