cleanup error logging