fix for null pointer on killed session