Not getting linux prompt in mender remote terminal

We are using Mender 3.4.0 client with mender-connect v 2.1.0 on ubuntu server. Sometimes we observe that when we try to connect to the remote terminal we see the terminal window getting opened but no prompt appearing.
The system stays in this state till we restart the mender-connect service.
Has anyone come across this issue and successfully resolved this?