[GH-3] cleanup session on CLI exit