Add write fd verification.