Added explict exit(0)