ivshmem: improve error handling