This program connects to the echo server, and then sends "hello", after echo back message "hello" received, sends "stop listening" to the server. After receiving "stop listening" echo back message, closes the connection. After connection closed, ios.run() is automatically unblocked.