flags_shutdown() may now be called explicitly.