"if the plaintiff refuses or fails to deliver the consent in writing as provided for in paragraph c the court may on application by defendant grant such consent on such terms as to costs and otherwise as may be just and appropriate in the circumstances"