WriteBytecodeToFile throws, so this needs EH info.