Add macro for running a block of code w/o jvm shutdown hooks

We had a test fixture for this, but there are use cases where it is valuable as a macro as well.