2/8/14 got the basic close window logic done and tested. it needs to be pushed up though.