added backup for lid close