flush disk before sleeping