add timeout example
use timeout for process killing

use Error instead of timeouterror