No need to do that. Use ExecutionContext.fromExecutorService, and then call shutdown on that.