Hide modal screen after AJAX failures