error when trying to close the virtual machine

Windows XP was started as Guest. I tried to close the virtual machine with the Close button ('x' top left corner) and instead of the usual list of choices with what to do I get a crash.
It's not the only time, it is happening randomly in 5% of the cases. Reinstalling guest OS doesn't help.
Being just 5% is only annoying...