[WIP] Cleaned daemon module. Added support for SIGINT signal.