Set retval to be stadard XML-RPC error structure.
If error is set and retval is set too, error gets preference on serialize response.