Trap Async DNS Resolution errors and throw an exception

Added some handlers to throw exceptions during Async DNS Resolution.