Provide warning when failing to run startup/shutdown hooks
Make sure SessionRemover closes files and generators