Make context a weak reference.