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

Sorry spaces slipped in again