Added missing file saving in break listener