Update  to handle a container being removed from another thread.