typeos and script exit