adds process exit