Fixed issue with background thread pooling.