Test loading during global destruction