don't hang in create-client-loop when loop should be quit