Closing session at the end.