now it can be closed with window closing