Updated to include new killSession code