Change exits to returns so we get proper HTTP code