>What do mean on the client side Viv ?
There's a window.onbeforeunload() event on the browser. I was thinking you could handle that and post something to the server to tell it that the user was closing the browser:
window.onbeforeunload = function(e){
$http.post(.....);
};
but, as before, I've never tried it and don't know if it would work......