Minor tweak in the client continue session code

+ Added ErrorType enumeration
+ Only destroy the session when continue session results in the specified
custom error