Session object will be destroyed here if not null.