Implement Closeable so we can use try-with-resources