[hexadaemon] some cleanup and improved error handling
[hexadaemon] debug flag added to hexabusserver