Redirect standard error to void

Fixes #7730