Improved dead pid detection.