Better support for passing errors via files. Part of fix for issue genforma/si#111.