clearing results in case of errors and warnings too