Added Exception protection on user code for daemon.