If you leave Teamspeak 5 on overnight and set your PC to sleep mode, TS5 will be buggy. At the bottom left you can supposedly see an active Teamspeak, but at the top left you can see I’m not connected anywhere.
I had the same problem, but it took some time until I got a timeout and it reconnected to the server.