Exit main script based off if else