Revert "Improve the code of handleSessionLost()"

This reverts commit bd9dace4a07dcd6b03fdc8be4a9ce8f8b54dabd0.

Reason for revert: There is a bug with this commit.

Change-Id: I95d40e5d35c1b810aec751fc0d0dfbaa7b87d345
1 file changed