When reusing a manager after calling close and connect, make sure to re-set the associated thread_local to avoid an error