you don't use the ret_val from `close`