KB-2729 Fixing errors in session migration

Fixing cargo cult coding from erroneous example about error handling.