Shutdown executor with timeout instead of waiting indefinitely for futures.