Add exception for the setting not found.

We should stop the script when a setting is not found.
Before raising exception, status_text will be displayed.