Prevent "System.InvalidOperationException: No process is associated with this object" exceptions from being thrown in NonInteractiveProcess