Metadata - merge fix added to bitbucket; also, delete session after close