cleanup and remove userdata