Fix #26: Window closing blocked