Avoid exception in openProcess when impersonated.