terminate calls on window.onbeforeunload regardless of timer running