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