More error-handling improvements in schemac