Add sessions jar to the console classpath, to allow SessionExpiredException to pass through
Properly differentiate between SessionExpiredException and other errors.
Handle ctrl-D properly to close the input