User settings

This is a pull request for issues #455 and #456.

Why is here `resetMessages` called twice? Once before `try` and once after?