Is there a way to get the SMTPAppender to flush/send its buffer before the system exits?

If I've a buffer of 64 and my program exits, it doesn't seem to be sending out what's in the queue.  Is there a way to either configure it to flush before the program exits or a hook I can call to trigger it?


Thanks,
-Mark