Make sure preview render job is cancelled before freeing the render engine associated to the viewport.