Handle certain errors properly when using --go