Apply close window listener in Cancel button. GCP-8603. To be reviewed by Dennis/Darla