Persist messages.
Delete task engine file after loading the file fails so that the next analysis succeeds.