finishing daemonizing the script