Make context termination more thread-safe