checkBackgroundThread