Autorun 'Alert Message' macro when exiting Solidworks

I was wondering if there is a way to write a custom, automated 'Alet Message' macro that pops up when I attempt to exit solidworks.

The reason for this is that I need to transfer my liscence before exiting of solidworks. It is easy to forget.

It would be great if I got an allert message when I attempt to exit solidworks without first transfering my liscence. i.e. "ARE YOU SURE YOU WISH TO EXIT WITHOUT TRANSFERING YOUR LISCENCE?"

Any help would be greatly appreciated.

Thanks!

SolidworksApi macros