fix close_on_drop bug in rwops