changes for auto close on sonatype