kill file transfer if writing fails