Add closing session operation, little bag fix