Changed IDCLOSE to IDEXIT (redefined)