improve error messages on waitpid errors