public static function ensure()
    {
        $cnt = 0;
        foreach( self::$instances as $instance ) {
            if( !$instance->isAlive() ) {
                $instance->reset();
                $cnt++;
            }
        }
        return $cnt;
    }