Check cout for failbit and clear if set.