Maven: auto release after close