Ask to save case base before closing the application