Listen to exit event for buffered exec.