(a) The provisions of any agreement to the contrary notwithstanding, a supplier who terminates a contract or agreement with a dealer shall notify such dealer of the termination not less than six months prior to the effective date thereof: Provided, That the supplier may terminate the agreement at anytime after the occurrence of any of the following described events:
(1) The filing of a petition for bankruptcy or for receivership filed either by or against the dealer;