Remove redundant exception handling. Method registered with atexit already saves the terminal when exception occurs