handle possible error from zpool_get_state