It may happen that when you put your Mi TW Earphones 2 Basic back in their case they do not disconnect when you close it. The reason for this seems to be that the kid gets a tiny bit loose and as such it does not press them enough to understand that the lid is closed so they must disconnect.
Electrical tape to the rescue. Two pieces should be enough.
Update: I am now using BluTack instead.