Main window

auto shutdown