Restart workflow polling when switching processes
Closes #1182 (closed)
This includes a 1 character change in process.js
as the task polling code needs to handle a task that possibly has completely disappeared: when we switch processes, the task gets destroyed as it does not belong to the new process, but the polling for this old task might still be there.