fixed process exit