[GIT PULL] idlestat: some fixes on error path