CloseDocument fixed,
Need to make "Close" button lock