Handle ending sessions properly