Fixed terminate bug in credit manager, Added ft manager message protocol