change back  process exit to process close