I didn't mean that you'd have to write it for me, I meant that if what you said works (atexit, signal) I will paypal you $10 for your generous contribution to my project.