cycle main loop before suspend