Removed unneeded endSession handler