Fixed the Exit script