Print dialog Close button was not working

I am not sure this is an optimal fix, but the Close button on Linux was not working. Now it works.