moved executionService.shutdown to the end of the shutdown procedure