[TEST] Only close GLOBAL_CLUSTER if it's non-null