Flush the remainder buffer

Now no samples are left unanalysed