Release strong weak references on close, closes #1883