Allow close or delete an unsaved buffer

Inform and ask when such case is detected.