Terminate when all commands executed