395148: avoid certain hangs in shutdown and document the different shutdown cases
5 files changed