fix SessionClosed repeatedly call