add warning message on closing if file is not saved yet