Fix #4268: Performace Data window cannot be closed.

#4268

I added a class ID to the performance dialog to be able to close it.