Prevent resource leaks in DBC loader.