Fix order of termination app.