Fixed errors on subprocess timeout.