rpc: Add remote exceptions tracking

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>