Add explicit log closing and bump version