Remove unreachable code.
Add Test when no VitalityCheckCallback is given.
Fix logging when failed.