Ignore close events after a read-only operation.