log exeptions raised from handlers
use proper dns resolver, neat error handling & input validation