fix #38, use close_on_drop option in RWops