Put an external flag telling container when exit has been called.