remove an unnecessary call to close_userdata