What happens if the AJAX call fails? Does the saving modal not get hidden?