fix crash on mrb_close()