More logging around shutdown and app start