[WIP] [EXPERIMENTAL] Codegen should not trigger fatals

Depends on #189 

This PR introduces a special test case that is aimed at tracking when `ProxyManager` should skip code-generation and bail out with an exception instead.

The final aim is to prevent the ability to use `ProxyManager` to trigger fatal errors.