Fixed issue with curl-loader not exiting when time had expired but clients max not reached