[Bugfix] Restart pipelined executor after error

  • Make sure the executor stays in a good state (#1315, #1316).