fixed handling of the skip_shutdown file + add logging on shutdown