Is there a way to perform an on-quit action?


One rubygnome program creates a gmon.out file in the current working
directory. I do not know why but I don’t want this file.

Is there either:

(a) a way to prevent the creation of a gmon.out file


(b) an on-quit event handler or similar, so that I could
use File.delete(‘gmon.out’) to get rid of said file?

I don’t want to use at_exit() because that feels unclean
when I use that GUI program from other GUI programs (like
in a tab, and they’d all use different at-exit handlers)