Fix a bug in tetrapod unregister cleanups