fix app exit when request failed