Added exception handling code and reporting for output for deleted layer info and count for updatelayers