Fix #117 - safely tear down all background operations when dealloc'ing the ScriptView