Fixed exit issue.

I have fixed issue #001 (Exit Issue).