[Bug 429122] improper handling of close-lid events