Handle session did become invalid error (#3)