Protect against errors.