fix: close globals file after reading it.