Fixed issue with settings not persisted

Fixed issue with settings not persisted after brackets is exited