Implement timeout to execute_dep.