Fixed segfault in range code
Fixed segfaults on unknown ssh errors