I am aware I can type exit, logout, or hit Ctrl-D to logout normally. None of this works when the server is timed out, but thankfully I can do Enter-~-. to exit the session.
However, this takes me all the way back to my local session and exits all jumps as well. How do I just exit the current ssh session and not previous jumps?