Added shutdown countdown as a config variable rather than a hardcoded value.