Use a generic exception in _check_call.