Make sure to close the jar and input stream

Signed-off-by: Walker Crouse <walkercrouse@hotmail.com>
Update for API changes

Signed-off-by: Walker Crouse <walkercrouse@hotmail.com>