Fixed start/restart/shutdown issues including any issues with daemonizing.