Catch exceptions in DaemonHelper main.