Fix minor issues and detect failure messages from RPC (incl. auth)