call clear_output first in flash

It will make everybody's life slightly easier if we call clear_output first instead of last when flashing.