Don't bother looking up STAGEDIR, it's not used
Add a 'jail stop' hook that is called right before the jail is shutdown