simplify code (error log is done inside Daemon.pm)