	- fix a invalid pointer access in the home unreg code. 	- more error handling.
	- fix a invalid pointer access in the home unreg code.
	- more error handling.

MarginC/kame,MarginC/kame,MarginC/kame,MarginC/kame,MarginC/kame,MarginC/kame,MarginC/kame