prevent memory overconsumption on timeouts longer than command execution time