Catch errors in sigi, better debugging output in gi loading errors