issue: #88

releasing locks on window closing