Shutdowns the executor service properly.