Are we abusing at_exit? If you are deeply interested in Ruby, you probably already know about Kernel#at_exit. You might even use it daily, without knowing that it is there, in many gems, solving many problems. Maybe even too many? Basics Let me remind you some basic facts about at_exit. You can skip this section if you are already familiar with it.