Fix node progress output and thread cleanup