Pinterf, I took your branch.
The destruction sequence is the problem. This is something to be very careful about so it's better if I don't touch it; it touches the core of AVS and will affect every plugin.
Code:
ScriptEnvironment::~ScriptEnvironment() {
closing = true;
// Before we start to pull the world apart
// give every one their last wish.
at_exit.Execute(this);
Here it wants to execute these functions before pulling the world apart, and with VDubFilter we must call the destructor before calling these functions.