added functions to kill session