[Console] add support for catching \Throwable
errors
#50420
Merged
8000
\Throwable
errors
#50420