Change some literals
Do not release preferences window when closed

It produced a problem when the window had been closed.