Fix NBD error handling

Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>