You can periodically execute the reload script with XRun which will close and restart the browser. Just do it on a time cycle quick enough before you normally see errors.
You can also watch for the browser not responding: The best way to open and close automatically at a specified time to prevent memory leaks(VBscript) - #3 by Plankton