Adding better sigint behaviour on daemon.