Hi Alex,
It is not possible to cancel a running node automatically.
But you can measure execution time:
GL, Mehrdad