Added exception handling to minidnsserver