update program exit path, output code