explicitly handle error propagation in foreach-object lopps since
powershell hides errors