Fixed issues with uncatched exceptions not being reported in CLI