You may go with the retainer option and specify a minimum number of weeks you need the developer for. In that case, the developer will be obligated by the contract to complete the minimum commitment.
If not specified, the developer will be allowed to discontinue at will. With that said, it is very rare that a CodementorX developer will leave an engagement before reaching a satisfactory milestone. If that happens, we will do our best to find you a replacement.