Improved timeout handling for Managed Process