Fix crash in grepbar when it's closed before the whole output is displayed