make Director::end() reantrant