Fix leave command
We don't need a separate thread