cleanup error output