Task restart mechanism when a browser is disconnected

Currently, when a browser is disconnected, an error is raised and the current task is considered as failed.
This PR automatically queues again those interrupted tasks so that they can be tried again (with a maximum number of restarts, so that tasks which make a browser crash do not lead to a never ending campaign).