Grasshopper C#, if Rhino is closed

Hi,

I’m wanting to send a signal to an online database when rhino is closed from one of my grasshopper components, so just before it closes it would send this signal, is it possible?

Thanks
Mitchell