Implemented close session logic