Don't break out of the session until all ACKs are received. Better handling of timeouts and poll() errors.