Instead of closing the browser using browser-specific privileged calls, can you have the server kill the browser process? Or alternatively, can you use Web APIs to close the window without being browser specific?