Throw exception if wait for process exit ended with timeout