Move daemon process to the top

Appearently, if Process.daemon is below everything else, it doesn't work