LW_ERROR_NOT_HANDLED [code 0x00009c51]
This error could occur during an install where the library paths may be set in the environment, which results in a botched install when importing the registry.
If you were to run env | grep -i lib or env | grep ld and see any library paths, these should be unset before installing or purging the software.
Additionally, a purge sometimes does not cleanly remove everything. After the purge uninstall, you should verify no Likewise or AD Bridge packages are still installed and delete everything under /opt/likewise*, /opt/pbis*, /var/lib/likewise*, and /var/lib/pbis*.