dynamic beforeExit = 'bootstrap:beforeExit'

This hook will be run after the program has received the exit command.