diff --git a/lib/processMultipart.js b/lib/processMultipart.js
index <HASH>..<HASH> 100644
--- a/lib/processMultipart.js
+++ b/lib/processMultipart.js
@@ -58,14 +58,12 @@ module.exports = (options, req, res, next) => {
       ? tempFileHandler(options, field, filename) // Upload into temporary file.
       : memHandler(options, field, filename);     // Upload into RAM.
 
-    const writePromise = getWritePromise();
-    if (options.useTempFiles) {
-      writePromise.catch(err => {
+    const writePromise = options.useTempFiles
+      ? getWritePromise().catch(err => {
         uploadTimer.clear();
         cleanup();
         next(err);
-      });
-    }
+      }) : getWritePromise();
 
     // Define upload timer.
     const uploadTimer = new UploadTimer(options.uploadTimeout, () => {
@@ -152,10 +150,6 @@ module.exports = (options, req, res, next) => {
       .then(() => {
         delete req[waitFlushProperty];
         next();
-      }).catch(err => {
-        delete req[waitFlushProperty];
-        debugLog(options, `Error while waiting files flush: ${err}`);
-        next(err);
       });
   });
Fixes richardgirges/express-fileupload#<I>