clear errors when re-logging