Don't release the window.

Was doing this as a means of stopping the preview. Instead, just stop
the preview directly.

Releasing the window was somehow causing a crash.