1.add the exception handling for getInstance() in HostManager