^ Ok (thanks I didn't know about contextmanager), but more to the point - wouldn't it be good for non-scrip-writing users, if this was done automatically, so that if they had a script that resulted in error, and hadn't been made like the above, reaper would protect them from it? I cannot imagine why, in a situation where a script is meant to set the end block, and doesn't because of an error, it would not be desirable for it to be sorted by Reaper - rather than just being added to the library, could it be built-in and automatic?