You can't close the window of a user server sided.
Close this with java-script. Return a (partial)view with a javascript.
Just call window.close() here.
function openWin() {
myWindow = window.open("", "myWindow", "width=200, height=100");
}
function closeWin() {
myWindow.close();
}