Fixing GlobalData issue #298.
Fixing static queues that produces crashes when exiting the game