Correcting parameters on window close. Setting default value to boolean.
Merge pull request #3 from financeCoding/addtional-bugs

Correcting parameters on window close. Setting default value to boolean.