fi. HPC systems rely on environment modules [1] and bash is still particularly tricky while using it, after 2 decades :-( .
Users on large platforms flee towards other shells (in practice: that's zsh) due to this sticky issue,
which is certainly fixable and, we might even get a chance to fix some of bash_logout's annoyances, too.
Fotis
[1] environment modules is a well tried technology, first appearing in year 1991! ;
if you have ever cought yourself to have a messy bash initialization file, check it out because it really helps.
In fact, with it you could have most of the common configuration for a handful of shells *in a single place*.