It also protects against flaky network connections and accidentally closing the local terminal emulator.