Improved exception information and logging in PlatformUtil.getGraph()