ensure errors bubble to top to ensure process has correct exit status