Listen for a shutdown command and terminate CherryPy and nginx for good measure.