Recreate WebView if window received a close

This would e.g. be the case for a command with HTML output that uses exit_discard — generally recreating the WebView loses history, but on 10.10 re-using a WebView when a window has been closed, seems to cause instability.