save shell input ring on exit