Handle online/offline cpu cores gracefully