file transfer using shutdown()