Try to handle session problems.