You have access to this event on client side with help of javascript :
http://www.w3schools.com/jsref/event_onunload.asp[
^]
do some AJAX actions in your javascript evenet handler to notify the server.
The other way that may not help you is Session_End in Global.asax file. but if you need an immediate reaction the javascript event handler is very suitable.