append [exit] after end of output