NEXUS-5906: releaseAfterClose flag added

Mojo changes and IT verifying it
Merge pull request #55 from sonatype/NEXUS-5906-releaseAfterClose

NEXUS-5906: releaseAfterClose flag added