opt: The error handler of spawn.