In order to protect further the natural gas fields and oil fields in this state, it is hereby declared to be unlawful for any owner to allow a well to go wild or to get out of control. The owner of any such well shall, after 24 hours written notice by the board given to him or to the person in possession of such well, make reasonable effort to control such well. In the event of the failure of the owner of such well within 24 hours after service of the notice above provided for to control the same, if such can be done within the period, or to begin in good faith, upon service of such notice, operations to control such well or upon failure to prosecute diligently such operations, then the board shall have the right to take charge of the work of controlling such well, and it shall have the right to proceed, through its own agents or by contract with a responsible contractor, to control the well or otherwise to prevent the escape or loss of gas or oil from such well, all at the reasonable expense of the owner of the well. In order to secure to the board in the payment the reasonable cost and expense of controlling or plugging such well, the board shall retain the possession of the same and shall be entitled to receive and retain the rents, revenues and incomes therefrom until the costs and expenses incurred by the board shall be repaid. When all such costs and expenses have been repaid, the board shall restore possession of such well to the owner; provided, that in the event the income received by the board shall not be sufficient to reimburse the board as provided for in this section, the board shall have a lien or privilege upon all of the property of the owner of such well, except such as is exempt by law, and the board shall proceed to enforce such lien or privilege by a civil action brought in any court of competent jurisdiction, the same as any other like civil action, and the judgment so obtained shall be executed in the same manner now provided by law for execution of judgments. Any excess over the amount due the board which the property seized and sold may bring, after payment of court costs, shall be paid over to the owner of such well.