Warn the user when the save fail and if they attempt to leave the page without saving.