break out of while client.poll() loop on exit