MIDI "Panic Button" - with MIDI Library?

is there a panic button function in the MIDI Library? i haven't been able to find one.

or is there another way to send an "all note and CC messages off" with the press of a switch?