     client.publish(log_topic, buff);
     client.loop();
 
-    // NOTE: if updating SPIFFS this would be the place to unmount SPIFFS using SPIFFS.end()
+    SPIFFS.end();
   });
 
   ArduinoOTA.onEnd([]() {

    case OPEN:
      if (millis() - last_doorstatechange > DOOR_OPEN_DELAY) {
        Serial.println("Closing door.");
        stepper.moveTo(DOOR_CLOSED);
        doorstate = CLOSING;
      };
    case CLOSING:
      if (!is_moving) {
        char msg[256];
        snprintf(msg, sizeof(msg), "[%s] Door is closed.", pname);
        Serial.println(msg);

      };
      break;
    case CLOSED:
      if (!isClosed()) {
        /// some alerting ? clearly a bug ?
      }
    default:
      break;
  };
