Exit main process