Prompt to save on close

The user will be prompted to save when closing the form now