You can always manually interrupt an SSH (or Telnet) session using the following key sequence:
<Enter><Tilde><Period>
This sequence is caught by the SSH client to force a session disconnect.