Added documentation on the intention of allowing onBeforeUnload so that handler can block the user from navigating away if necessary.