24. If any witness, whether a party to a suit or not, to whom any summons to give evidence or produce a document, shall have been personally delivered, shall, without lawful excuse, fail to comply with such summons as required by this Act, or attending, or being present in Court, shall, without lawful excuse, refuse to give evidence, or to subscribe his deposition? or to produce any document in his custody or possession, named in such summons as aforesaid, upon being required by the Court so to do, the Court shall have full power and authority to issue an order in writing to the nazir to apprehend and bring the witness before the Court; or, if he be already before the Court, to take him into custody. And such court may impose on such witness a fine not exceeding five hundred rupees for his default or refusal, realizable by attachment and sale of his property, and may commit him to close custody until he shall consent to give his evidence, or to sign his deposition, or to produce the document, and any such fine as aforesaid shall he levied and recovered by attachment and sale of the property of such person. Provided that no fine imposed under the provisions of this section shall exceed the amount of the property in dispute in the suit. If any such person shall abscond, or keep out of the way, so that he can't not be seized or brought before the Court, his property shall he liable to attachment and sale in the same manner as is provided by Section XXVII. of this Act, with respect to a witness on whom the service of a summons cannot be effected. If such person shall be a party to the suit, the Court, instead of proceeding in the manner above pointed out, may, if the witness be a plaintiff, appellant, or petitioner, dismiss the complaint, appeal or petition, with costs against such party, or if such party be a defendant or respondent, may hear and decide the case against such defendant or respondent ex-parte. If any such complaint, appeal or petition shall be dismissed for such cause, the complainant or petitioner shall be debarred from preferring any other petition, appeal or, complaint in respect of the same matter.