fixed window closing #19