There is no direct way at the moment to kill a running script. It would be quite easy to add 'a simple hack' to kill scripts but I think this would result in memory leaks. The lua stack should be unwound properly which is down really to the lua side of things.
I looked at a prog called EditPlus but it was shareware (it did very similar things) to what you describe.