Fix issue MR-235 - Config file gets corrupted when leaving the password entry box with ESC