formatted and added timeout functionality to auto-fail and kill phantom on a failed action