Fix some bugs.
Support fatal logging.
Write a fatal log when no service registry is configured in SyncRegistryTask.
Add service info retrieving mechanism.