---
title: "Shutdown and Draining"
description: "Learn more about the default behavior of our SDK if the application shuts down unexpectedly."
url: https://docs.sentry.io/platforms/react-native/configuration/draining/
---

# Shutdown and Draining | Sentry for React Native

The default behavior of most SDKs is to send out events over the network asynchronously in the background. This means that some events might be lost if the application shuts down unexpectedly. The SDKs provide mechanisms to cope with this.

The React Native SDK ensures all Sentry events are accounted for in the event of a hard crash. This is done by prolonging the process until all events are successfully stored on the device's disk. The events will then be sent the next time the application is open.

You can manually flush all events to disk by calling `Sentry.flush()`.
