This is a utility for RAII-style operations. An object that will run code when a scope is left. Also includes unit tests.