Fix exit code table not being closed