diff --git a/index.js b/index.js
index cdf4e27e706c28a9751aa538050e3bcaa3293d1d..ff36782f6a359539775bf615b1f799803bfe3f64 100644
--- a/index.js
+++ b/index.js
@@ -265,6 +265,8 @@ async function start(fields, cozyParameters) {
   } catch (error) {
     log('error', 'Start failed', error)
     Sentry.captureException(error)
+    await Sentry.flush()
+    throw error
   }
 }