Added skeleton for onerror handler