Using abort instead of exit(1)
As per recommendation from @parkr.