Moved measurements.close() past show_analysis_complete() so that measurements are valid until after user closes dialog box.
issue #786 generalized setting warning mechanism + check for blank field in condition. Fix for module errors sometimes not being highlighted.