Update shell-exit for 3.10