(1) In any proceedings under any of the foregoing provisions of this chapter it shall be a defence to prove that the accused person, before being charged with the crime, and in consequence of the compulsory process of a court of justice in an action or proceeding instituted in good faith by a party aggrieved, or in a compulsory examination or deposition before a court of justice, disclosed on oath the act alleged to constitute the crime.(2) In any such proceedings as aforesaid a statement or admission made by any person in any compulsory examination or deposition before any court on the hearing of any matter in bankruptcy or in any statement verified by oath filed for the purposes of any such matter, or in any compulsory examination in the winding-up of a company, shall not be admissible in evidence against such person.(3) No person shall be entitled to refuse to answer any question or interrogatory in any civil proceeding in any court, on the ground that his doing so might tend to show that he had committed any crime under the foregoing provisions of this chapter.