remove memory leaking approach of saving scopes and watchers in instrument library