function setEndThreadExecutionHook(endHook) {
  endExecutionHook = endHook;
}
Allows the application to set an execution hooks for when BrowserChannel
stops processing requests. This is useful to track timing or logging
special information. The function takes no parameters and return void.
@param {Function} endHook  The function for the end hook.