Previous session defaults to empty string
Generalize client error handling to cover signatures too