Added more exception handlers to DaemonBase.cs.