(a) The commissioner may extend the time for payment of the tax imposed by this chapter for a reasonable period not to exceed six months from the date fixed for the payment thereof. If the commissioner finds that the payment on the due date of any part of such tax would result in undue hardship, he may extend the time for payment for a reasonable period not in excess of three years from the date fixed for payment of the tax. If an extension is granted, the commissioner may require the taxpayer:--(i) to deposit with the state treasurer bonds or other negotiable obligations of the commonwealth or of the United States of America of such aggregate face amount as the commissioner may from time to time deem necessary to adequately secure payment of such taxes; or(ii) to give a bond to the state treasurer in such amount and with such sureties as the commissioner deems necessary, conditioned upon the payment of the amount with respect to which the extension is granted in accordance with the terms of the extension. In case of a deposit of bonds or other negotiable obligations with the state treasurer hereunder he shall pay to such taxpayer the interest accruing thereon, and, if such taxes shall be paid in full when due in accordance with the terms of the extension, he shall return such bonds or obligations to the persons entitled thereto; but if such taxes shall not be paid when due, the state treasurer may sell all or any part of such bonds or obligations to satisfy such taxes, and shall return to the taxpayer all the proceeds of such sale, and all such bonds or obligations, remaining in his hands after satisfying such taxes.