Free args and use read/write instead of send/recv.