The mediation shall expire if the parties agreed on a settlement of the dispute under mediation, if the mediation is not possible, if one of the parties terminates it, if the mediator terminates it due to the futility of proceeding with it, or if the period specified for it expires without extension. The regulations shall specify the controls and procedures necessary for what is stated in this article.