Restart shell after KeyboardInterrupt on all platforms