Move ACK handling after send to `handle_packet`.