Unattach halo observer on window state change

Change-Id: Ib817dbb401169cbc7022430f93398181d007810e