exit if -1 returned. Likely client went away
Tidying