Give better errors when waitpid2 returns an unexpected value