There have been numerous topics on this subject. I don't feel like looking for them myself. There are ways around it, however, depending on what you're trying to do.
I think you can disable the script buffer temporarily or you can pop the last script buffer item out of the script buffer -- you have to be careful doing it, though, because the script buffer is used for saving games and restoring them to the state they were in. Make sure you're only keeping non-essential information out of the script buffer.