monitor errors and clear