getstr() does not return < 0, ever (it returns 0 on abort). Added more abort-checks after calls to getstr().