U: refactor process exit