Catch error on console creation

Signed-off-by: Alexandr Morozov <lk4d4math@gmail.com>
Merge pull request #7502 from LK4D4/catch_error_console

Catch error on console creation