make finish_no_open() return int