Shutdown function is changed

I have changed the shutdown method from dispose() to system.exit(0)