Added ability to terminate sessions