Add timeout to subproccess execution of external commands