Problems with user script

In the last couple of releases I have been having issues with a user script crashing the browser. The browser stops responding and when that happens and I receive the dialog box inquiring whether I want to “kill the page” or “wait” it most often doesn’t kill the page when I select that option. I have to close and re-open the browser. Very annoying as I have to keep signing back into websites numerous times.