Close previous paths if followed by a new M command.