file transfer error handling