Try to handle session missing cases.