fixed windows not closing application