@strapi/plugin-sentry doesn't catch errors thrown in bootstrap function
### Node Version

18.9.0

### NPM/Yarn/PNPM Version

8.19.1

### Strapi Version

4.15.0

### Operating System

Windows 10

### Database

PostgreSQL

### Javascript or Typescript

Typescript

### Reproduction URL

_No response_

### Bug Description

Errors thrown in bootstrap function in `src/index.ts` are not caught by Sentry.

### Steps to Reproduce

1. Install @strapi/plugin-sentry
2. Set `bootstrap` function to:
``` 
bootstrap({ strapi }) {
    throw new Error('Error should be caught by Sentry');
  },
```
3. Start Strapi

### Expected Behavior

Error should be reported to Sentry.

### Logs

```shell

```

### Code Snippets

_No response_

### Media

_No response_

### Additional information

Sentry is initialized but the errors aren't caught. If they are thrown later (e.g. after a setTimeout of 10000ms), they are caught.

### Confirmation Checklist

- [x] I have checked the existing [issues](https://github.com/strapi/strapi/issues) for duplicates.
- [x] I agree to follow this project's [Code of Conduct](https://github.com/strapi/strapi/blob/develop/CODE_OF_CONDUCT.md).