From: "John H." Date: 2011-10-17T23:10:57+09:00 Subject: Re: Signal handling cross-platform Thanks guys. In the end I opted for Jeremy's solution for it's elegance. I can confirm it works fine on both Linux and MacOSX (and handles both interruptions and session terminations). Unfortunately they don't work with Windows. I listed all the available signals and created a trap for them all, but when I run the app in a console and close the console it still won't clean up after itself. When I feel brave I shall look into the modules as recommended, unless someone else has anything to offer first? Thx John -- Posted via http://www.ruby-forum.com/.