Add a at_exit block for killing workers