Gracefully handle invalid sessions (WIP 306)

Addresses issue describe in https://assembly.com/coderwall/wips/306