bcf_close crashes when it sees a nullptr

Also true for hts_close but we don't have any of those.