fix issue where certain 5xx series errors crash sockbot uncleanly