Fix crashes when SSH session is disconnected or interrupted
In the master branch the X2Go Client crashes when SSH connection is interrupted (for example in the case of network failure). This branch is providing some fixes in the SSH session handling code.