Exposed ClientHandler::OnBeforeClose

Exposed OnBeforeClose to handle the destroying of browsers. 

Access to this method is of particular use when a browser is forcibly being closed via JavaScript, such as on this page: http://www.quackit.com/javascript/popup_windows.cfm which calls `javascript:window.close()` if the user clicks the close link in the pop up window.