Auto shutdown at night after High sierra upgrade
Installing "command line tools" solved this issue. However, I have no clue how they are related.

To install command line tools run following command in terminal.

xcode-select --install