Now open files have their original terminal settings restored before any modifications for file opening are made. On exit or interrupt signals, the original settings are restored