I am trying to send API request while closing tab/browser, I have tried unload and beforeUnload handler, but It does not work, I am guessing that api call not occuring becau