What we should probably do is create a client with a mutex and invalidate it when parameters change rather than creating a client over and over...that can be a TODO for later but for now this fix suffices. Fixes #1428