Added onerror handler to DCs