You should redirect to "closewindow.html" holding the following script in the header:
<script>
t = null;
function closeMe(){
t = setTimeout("self.close()",0);
}
</script>
But I don't see why you'd want that, unless you are handling the log-out in a pop-up, which I can't see why you'd want, either :)