Fix use-after-free on unsuccessful user join