[cppmyth] Fix crash on stopping event handler

Trying to show recorded stream from unattainable slave backend cause segfault.
We have to wait the thread stop before destroy allocated resources of handler.