Added daemon cleanup function to remove PID file.