Added success fail when unregister fails