daemon: Improved exception handling in IPNDAgent