Fixed death loop on file transfer complete