[NEXUS-5906] rename releaseOnClose -> autoReleaseAfterClose for consistency and clarity of terminoligy.