Make close idempotent.
Fixes bug encountered in further testing.