gui: refactor storing the settings before acqusition

save the settings in the client, that is: the acquisition dialog caller

This mainly avoids putting too much cleverness in the GUI code.
Also ensure that the settings are always set back, even if the acquisition dialog crashes