close used inputstream
reset version for prereleased versions as well