Implemented ControllerStack context manager.