to end sessions