fix crash on DNS resolve issue
dump to stderr and switch off colors
listen and accept emit event rather than exception