[PATCH 2/2] Fix listing threads that caused an error