Redirect stderr when calling shutdown, too