Release the reference previously obtained via acquire.
NOTE: it's safe to call this after close.
if the release operation on the given resource throws an IOException