When debug is true on the FrameworkModule the CLI commands won't show errors in the console and fail silently.
Upon investigation I tracked the issue to a onAppShutdown listener. The dispatch is done here and the error is logged here, but some side effect in store.close prevents it from being logged.
How to reproduce the error:
The minimal reproduction is here.
ts-node app test does not display the exception that is throw in app.ts:14
Expected behaviour:
Error to be shown in the console even when debug is enabled.