Suppress shell exec errors in a Windows-compatible way.