show terminal buf when exception occurs