For sentry to properly work in serverless environments we need to `flush()` events so that the functions don't die before we can send the data off.