unregistering joints after releasing them -- needs testing!