Bug 001 and added additional error handling in isHostUp