Fixed a bug with the windowClosing operation.