Dealt with some concurrency issues due to concurrent GC.