At times terminal execution fails with Terminal error: KeyboardbLocked

I see that at random times, the UiPath’s internal terminal fails with the exception Terminal Error: KeyboardbLocked.

I’m not sure what is causing this issue and when we get this error the terminal is already closed. What is this error and this is not something I’m able to replicate every time.

Connection String used:
“{‘AttachExisting’:false,‘ConnectionProtocol’:0,‘ConnectionType’:1,‘EhllBasicMode’:false,‘EhllDll’:null,‘EhllEnhanced’:true,‘EhllFunction’:‘hllapi’,‘EhllSession’:‘A’,‘EnableSSL’:false,‘Host’:’” & serverName & “’,‘InProcessMode’:false,‘InternalEncoding’:‘IBM037’,‘Mode’:1,‘Port’:23,‘Profile’:null,‘ProviderType’:9,‘ShowTerminal’:true,‘TerminalModel’:62,‘TerminalType’:1}”