The implementation now terminates when the unix socket is deleted.
Currently we are unable to use fsnotify (on linux),
since it does not notify on the deletion of open files.
The implementation can now daemonize (on linux)
or be kept in the foreground by providing the necessary flag.