Delete the session variables only if they exist

The deletion statements for the session variables, now exist inside a
try-except block so the code doesn't error out in case someone
explicitly tries to go to logout.psp.