Terminal reset on shell close implemented.