An EOF is a good reason to close a connection.

ok nicm@
Show an error if cmd_find_session can't find the current session, like
the other functions.