Handle final empty packet

Handle the case where the master sends a final empty packet to indicate
end of transfer
Merge pull request #3 from hefloryd/master

Handle final empty packet