Fixed player spawn position reading.
fixed the threads memory leak.