Handle invalid sessions id's.

Signed-off-by: Mike Howe <dockter@almuramc.com>