Handling peer errors.