Move XML binding classes to AutoCloseable