Cancel request if the browser closes