VM,
To do this, you will have to inject script code from the server side to
have the browser window close. The code on the server runs on the server,
returning a response when a request is made. Because of this, you have to
issue commands to the browser in the request that it can understand, like
javascript.
Hope this helps.