Handle final empty packet

Handle the case where the master sends a final empty packet to indicate
end of transfer