Added exception handling to avoid plumbago crash on graphite failure