winery ROShard: on deletion, only close the shard when possible
The __del__
method gets called on object teardown in most cases.
Specifically, it can be called when __init__
fails, in which case all
attributes aren't guaranteed to be set.
Closes #4744 (closed).