Daemonize process properly