Switch to using Closeables.close().