added functionality to terminate the real sessions