Where the provisions of Article 132-26 du code pénal, the sentence enforcement judge shall determine the terms and conditions for the implementation of home detention under electronic surveillance by means of a non-appealable order within a maximum period of four months from the date on which the sentence becomes enforceable and within a period of five working days when the sentencing court has ordered the placement or continued detention of the sentenced person and declared its decision provisionally enforceable. If the conditions that enabled the court to decide that the sentence would be served under home detention with electronic monitoring are no longer met, if the sentenced person does not comply with the prohibitions or obligations imposed on him, if he demonstrates misconduct, if he refuses a necessary change in the conditions of enforcement or if he so requests, the benefit of home detention with electronic monitoring may be withdrawn by the sentence enforcement judge by a decision taken in accordance with the provisions of l’article 712-6. If the personality of the sentenced person or the means available justify it, the sentence enforcement judge may also, in accordance with the same procedures, substitute a measure of semi-liberty or work release for the measure of home detention under electronic surveillance.