Add warning when cleaning up JSON objects fails.