Does Prefect capture stderr output?

No, Prefect does not capture stderr output. However, Prefect will capture exceptions and their messages, but this is different than stderr output.