In Options menu click Advanced. In opened dialog turn on Confirm exit when closing window check box. When window will be closing Exit confirmation dialog will be showed.