In case of all errors, still clear the table

if there is an exception, I was not clearing the table