Any railroad company prior to the operation of any trains may abandon any part of its line before the same shall have been wholly completed upon filing and recording in the office of the Secretary of State a certificate of abandonment, executed by its president and secretary, under its seal, describing the part to be abandoned.
Thereupon the Treasurer of the State shall repay to the company out of the money of the company therefor deposited with the treasurer as required by law, $2,000.00 for every mile, and a proportionate sum for any distance less than a mile of its route so abandoned.
The company shall not thereafter extend or construct its road upon the portion so abandoned without first filing and recording a new survey thereof in the office of the Secretary of State and making the deposit with the treasurer required by law.
N.J.S. § 48:12-40