Implement java.io.Closeable interface.