CAMEL-8177: Graceful shutdown - Should allow background thread to terminate