Changed Exit into Close