Return early when possible

if (!is_last_chunk) {
  Send(ipc_reply);
  return;
}

......