Sentry disabling system not working

Hi,

The current way of disabling sentry (using empty dsn) is not working on our iOS app.

Code:

if (self.sentryClient) {
SentryClient *sentryClient = [[SentryClient alloc] initWithDsn:@"" didFailWithError:nil];
SentryClient.sharedClient = sentryClient;
self.sentryClient = sentryClient;
}

Disabling occurs when on the applicationWillTerminate scope, but Sentry sends report of crashes happening after this is reached causing a lot of undesired logs. I hope to find a solution for this, and help others as well.

Sentry version 4.4.0

Thanks.