Remove locals window from Session when destroyed