You could use a process event trigger than a wait task and kill task.
Another approach is to use a time trigger and use powershell.
Below code will look for the calc process, if it is running longer than 30 min it will kill it.
Get-Process calc |
Where StartTime -lt (Get-Date).AddMinutes(-30) # |
Stop-Process -Force