Added code to daemonize the server