Gazprom warned Polish and Bulgarian state companies that gas would stop flowing.