I want some kind of cleanup code to run when Rails closes - is this possible? My situation is that I have several threads in the background (I use jruby and call in java) that live for the life of the process, and I need to tell them to close them.
Thanks!
source share