making sure to clear before run and exit 1