Add BuildDNError exception class
Change how printexception handles known and unknown exceptions. Add more exception handling throught he code.