increase wait duration when shutting down thread pool executor service. was 1ms before, which was too short when large thread pools were used