It shall be unlawful for any person having possession or control of any well drilled or being drilled for oil or gas, either as contractor, owner, lessee, agent or manager, or in any other capacity, to permit salt water, oil or refuse from any such well to escape by overflow, seepage or otherwise from the vicinity of such well, and it shall be the duty of any such person to keep such salt water, oil or refuse safely confined in tanks, pipelines or ponds, so as to prevent the escape thereof.
K.S.A. 55-172