(5)Where the composition of any offence is made after the institution of any prosecution, such composition shall be brought by the competent authority referred to in sub-section (1) in writing, to the notice of the court in which the prosecution is pending and on such notice of the composition of the offence being given, the person against whom the offence is so compounded shall be discharged.