Hello Aahori,
I don't think there's a way to kill the processes automatically.
Usually you can cancel all processes that are older than a couple of minutes.
If a process takes longer than 2-3 minutes, it's probably an indication that it hangs.
But I think you should get rid of those hanging processes by following the steps in my reply from Feb 11, 2015 9:38 AM.
Best regards
Sebastian