Changed exit code

> Change exit code from this.close to application.exit