retry async script on page unload