Prevent crash when closing bender with an armature