core: log error if we can't send RPC message

Acked-by: Gerd Behrmann
Target: master