Return 1 on main errors, not -1

Jeez :)