add exit code 1 for error state for zdaemon to restart the process