Use AutoCloseInputStream to dispose the binary when the stream is closed
(https://devtools.jahia.com/fisheye/cru/AND-157#c5099)