Pequeno lembrete de código: Evento ao fechar Form em C#
// no initialize
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(formClosing);
private void formClosing(object sender, EventArgs e)
{
MessageBox.Show("fechando");
}