After starting recordmydesktop and clicking 'record' the window with recordmydesktop disappears. And so I can not stop it. With Kazam I had the same problem.
I installed the program as root and use it as a user with limited rights.
The recordmydesktop window disappears completely. It disappears from the taskbar also.