Terminating and canceling user sessions