exit code helper script